#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif

#include <SDL/SDL.h>
#include "jeu.h"
#include "menu.h"

#define TAILLE_BLOC 34
#define NB_BLOCS_LARGEUR 12
#define NB_BLOCS_HAUTEUR 12
#define LARGEUR_FENETRE TAILLE_BLOC * NB_BLOCS_LARGEUR
#define HAUTEUR_FENETRE TAILLE_BLOC * NB_BLOCS_HAUTEUR


int main ( int argc, char** argv )
{
    SDL_Surface *ecran;
    menupr(ecran);/*= NULL, *menu = NULL;
    SDL_Rect positionMenu;
    SDL_Event event;

    int continuer = 1;
    SDL_Init(SDL_INIT_VIDEO);
    SDL_WM_SetIcon(SDL_LoadBMP("akari_icon.bmp"), NULL);
    SDL_WM_SetCaption("AKARI - 2P4 2013-2014", NULL);
    ecran = SDL_SetVideoMode(LARGEUR_FENETRE, HAUTEUR_FENETRE, 32,SDL_HWSURFACE | SDL_DOUBLEBUF);
    menu = SDL_LoadBMP("menu.bmp");
    positionMenu.x = 0;
    positionMenu.y = 0;
    SDL_BlitSurface(menu, NULL, ecran, &positionMenu);
    SDL_Flip(ecran);
    while (continuer)
    {
        SDL_WaitEvent(&event);
        switch(event.type)
        {
        case SDL_QUIT:
            continuer = 0;
            break;
        case SDL_KEYDOWN:
            switch(event.key.keysym.sym)
            {
            case SDLK_KP1:
                jeu(ecran);
                break;
            case SDLK_KP2:
                diff(ecran);
                break;
            case SDLK_KP3:

               continuer = 0;
                break;
            }
            break;
        }

    }
    SDL_FreeSurface(menu);*/
    SDL_Quit();
    return EXIT_SUCCESS;

}
